package com.project.nimsen.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.project.nimsen.dao.IBaseDao;
import com.project.nimsen.entity.Syspro;
import com.project.nimsen.service.ISysproService;
import com.project.jdbc.dao.IBaseJdbcDao;
import com.project.jdbc.service.BaseServiceImpl;
import com.project.jdbc.utils.Finder;
@Repository("sysproService")
public class SysproServiceImpl extends BaseServiceImpl implements ISysproService {
	@Resource
	IBaseDao baseDao;
	protected IBaseJdbcDao getBaseDao() {
		return baseDao;
	}
	public Syspro findSysByName(String name) throws Exception {
		Finder finder = new Finder("select * from syspro where active!=1 and sysproname=:name");
		finder.setParam("name", name);
		return baseDao.queryForObject(finder, Syspro.class);
	}
}
